home *** CD-ROM | disk | FTP | other *** search
- { SCATTER.ALG - shows how to plot individual data points without the
- interpolation normally done by DAN (i.e. a scatter plot).
-
- Do not set a duration value since DAN sets it automatically
- based on the processing span in the data files.
- }
- { set main label for plot }
- label = "Scatter Plot Example (for two data sets)";
-
- interp=off; { turn interpolation off }
- tracenum=off; { suppress trace numbers }
- grid=-100; { suppress grid inside plot area }
- trace = block; { plot data points using blocks }
- file="scatter1.dat"; { data file name }
- { create temporary data file and autoscale x & y axis }
- scatdat = read ;xmin=0; xmax=10;{& scaley(scatdat) & scalex(scatdat);}
- ymin=0; ymax=10;
- plot(scatdat); { plot the data in temporary file }
- trace = vline; { plot using verticle lines to 0 }
- { re-read same data file and put verticle lines }
- plot(scatdat); { under plot pts }
-
-
- trace=diamond; { put second set of data points on plot }
- file = "scatter2.dat"; { Note: since scaling was done on first data file }
- plot(read); { only, some of these points are off scale }
-